<?php

namespace common\models\pdd;

use common\models\base\ActiveRecord;
use Yii;

/**
 * This is the model class for table "pddCountrys".
 *
 * @property int $id
 * @property int $countryId 国家id
 * @property string $countryName 国家名称
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 */
class PddCountrys extends ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'pdd_countrys';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['countryId','created_at','updated_at'], 'integer'],
            [['countryName'], 'string', 'max' => 100],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'countryId' => '国家id',
            'countryName' => '国家名称',
            'created_at' => '录入时间',
            'updated_at' => '更新时间',
        ];
    }
}
